package com.kingyea.mobilepolice.apimanage.association.service;

import com.kingyea.mobilepolice.apimanage.association.bean.ServiceRequesterAssociation;

import java.util.List;
import java.util.Map;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description ServiceRequesterAssociation 接口
 * @date Created in 2018-03-10 18:52:52
 */
public interface ServiceRequesterAssociationService {

    /**
     * 通过ID查找对象
     *
     * @param requesterId
     * @param serviceId
     * @return
     */
    ServiceRequesterAssociation getById(Integer requesterId, Integer serviceId) throws Exception;

    /**
     * 通过唯一标识对查找对象
     *
     * @param requesterSN
     * @param serviceSN
     * @return
     */
    ServiceRequesterAssociation getBySN(String requesterSN, String serviceSN) throws Exception;

    /**
     * 列表
     *
     * @param serviceRequesterAssociation
     * @return
     */
    List<ServiceRequesterAssociation> list(ServiceRequesterAssociation serviceRequesterAssociation) throws Exception;

    /**
     * 删除
     *
     * @param requesterId, serviceId
     * @return
     */
    int deleteById(Integer requesterId, Integer serviceId) throws Exception;

    /**
     * 添加
     *
     * @param serviceRequesterAssociation
     * @return
     */
    ServiceRequesterAssociation save(ServiceRequesterAssociation serviceRequesterAssociation) throws Exception;

    /**
     * 更新
     *
     * @param serviceRequesterAssociation
     * @return
     */
    ServiceRequesterAssociation update(ServiceRequesterAssociation serviceRequesterAssociation) throws Exception;

    /**
     * 根据搜索条件搜索关联信息
     *
     * @param map
     * @return java.lang.Object
     * @author Mr.Lin
     * @date 2018/3/9 17:35
     */
    Object searchByCondition(Map<String, Object> map) throws Exception;

    /**
     * 审核
     */
    Object check(Map<String, Object> map) throws Exception;
}
